package org.example.flyweight;

import java.util.Arrays;

/**
 * @author wangbin
 * @date 2024/4/18
 * @vesion 1.0
 */
public class Client {

    public static void main(String[] args) {
        WebsiteFactory websiteFactory = new WebsiteFactory();
        WebSite category = websiteFactory.getWebSiteCategory("新闻");

        category.user(new User("xxx"));

        WebSite category2 = websiteFactory.getWebSiteCategory("博客");

        category2.user(new User("2222"));

        System.out.println("args = " +websiteFactory.getWebSiteCount());


        Integer integer = Integer.valueOf(233);
        Integer integer2 = Integer.valueOf(233);
        Integer integer3 = Integer.valueOf(233);
    }
}
